<!--
 * @Author: tangcj 572036028@qq.com
 * @Date: 2024-01-25 10:45:48
 * @LastEditors: tangcj 572036028@qq.com
 * @LastEditTime: 2024-02-01 15:35:21
 * @FilePath: /health-gpt-website/src/views/Home/components/Page5.vue
 * @Description: 文件介绍
 * 
 * Copyright (c) 2024 by ${git_name_email}, All Rights Reserved. 
-->
<template>
  <div class="page5">
    <div class="mainBox">
      <div class="contentBox" id="contentBoxPage5">
        <div class="title">E-WATCH</div>
        <div class="line"></div>
        <div class="content">
          <div class="textBox1">
            <span class="boldText">E-WATCH智能手表</span>
            <span
              >是一款具备高度智能化和精准度的健康监测设备，该手表可以对人们的血氧、血压、心脏、睡眠等各项健康数据指标的动态变化进行24小时连续采集监护，完整记录佩戴者一整天的体征波动趋势，直接反应人体多方面健康状态,最后根据身体数据趋势表现，运用人工智能和大数据技术对采集到的健康数据进行深度分析，每日评估佩戴者的器官健康状态，为预防人体疾病的发生提前预警。</span
            >
          </div>
          <img src="../../../assets/bgImg/watchImage.png" alt="">
        </div>
      </div>
    </div>
    <div class="clickBox" @click="nextPage">
      <div class="arrowDown">
        <img src="../../../assets/icon/arrow-down.png" />
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data () {
    return {
      showAnimation: false,
    }
  },
  mounted () {
  },
  methods: {
    nextPage () {
      this.$emit('next')
    },
    // 当第一次切换到该页，启用动画
    initAnimation () {
      if (this.showAnimation) { //动画只执行一次
        return false
      }
      // 启用整体文字渲染动画
      let element = document.getElementById("contentBoxPage5")
      element.classList.add("contentBoxAnimation")
      // 下次进入该函数不再执行
      this.showAnimation = true
    },
  },
}
</script>
<style scoped lang="less">
.page5 {
  height: 100%;
  width: 100%;
  background: rgb(109, 100, 100);
  display: flex;
  justify-content: center;
  background-image: url(../../../assets/bgImg/bg5.png);
  background-size: 100% 100%;
  background-attachment: fixed;
  .mainBox {
    width: 1200px;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    .contentBoxAnimation {
      position: absolute;
      animation: popup 1.5s ease-in-out;
      animation-fill-mode: forwards;
      // animation-delay: 1s; /* 设置动画延迟执行时间 */

      @keyframes popup {
        0% {
          top: 50%;
          opacity: 0;
        }
        100% {
          top: 0;
          opacity: 1;
        }
      }
    }
    .contentBox {
      width: 918px;
      height: 522px;
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative;
      opacity: 0;
      .title {
        font-size: 40px;
        font-family: PingFang SC, PingFang SC;
        font-weight: 600;
        color: #333333;
        line-height: 60px;
      }
      .line {
        width: 329px;
        height: 4px;
        background: #123be7;
        border-radius: 50px 50px 50px 50px;
      }
      .content {
        position: absolute;
        bottom: 0;
        width: 918px;
        height: 374px;
        background: rgba(255, 255, 255, 0.6);
        border-radius: 30px 30px 30px 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
        .textBox1 {
          margin: 56px 48px;
          .boldText {
            font-weight: 600;
          }
        }
        img {
          width: 330px;
          margin-top: -55px;
        }
      }
    }
  }
}
</style>